#include <iostream>
using namespace std;

/**
 * 线段包含
 */
int main() {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    if (a <= c && d <= b || c <= a && b <= d) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}